package com.ludomancy.archeologyrpg;

import java.awt.Graphics;
import java.awt.Rectangle;
import com.ludomancy.gamelib.TextWidget;
import com.ludomancy.gamelib.Widget;

public class InfoWidget extends Widget
{
	private TextWidget text;
	
	public InfoWidget(Widget parent, Rectangle area)
	{
		super(parent, area);
		// create the controls
		text = new TextWidget(this, new Rectangle(0,0,getWidth() - 2, getHeight() -2), null, ((GameTheme)getTheme()).tinyFont);
	}
	
	public void setText(String newText)
	{
		text.setText(newText);
	}
	
	public void paint(Graphics g)
	{
		GameTheme.theme.fillStatusbarBackground(g, getClientRect());
	}
}
